<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        .red{
            color: red;
        }
    </style>
  </head>
  <body>
    <button>按钮</button>
    <div>显示当前系统时间</div>
    <img src="" alt="" />
    <div class="ss">万达集团</div>
    <script>
      let btn = document.querySelector("button");
      let divs = document.querySelector("div");
      let imgs = document.querySelector("img");
      let ss=   document.querySelector(".ss")
      btn.addEventListener("click", function () {
        divs.innerHTML = new Date().toLocaleString();
         ss.className="red"
        imgs.src ="https://img0.baidu.com/it/u=288870381,2688671591&fm=253&fmt=auto&app=138&f=JPEG?w=200&h=200"
      });
      
    </script>
  </body>
</html>
